<?php 
if($_SESSION['login_status']==TRUE){
	if($_SESSION['center']==FALSE){
		$sql_log = "select * from tb_membership where username= '".$_SESSION['username_log']."' and password = '".$_SESSION['password_log']."' limit 1";
		$qr_log = select($sql_log);
		$rs_log = $qr_log[0];
	}else if($_SESSION['center']==TRUE){
		$sql_log = "select * from tb_center where username= '".$_SESSION['username_log']."' and password = '".$_SESSION['password_log']."' limit 1";
		$qr_log = select($sql_log);
		$rs_log = $qr_log[0];
	}
	
	
}
?>